package com.bite.deom3;

import java.lang.reflect.Array;
import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        Student students1 = new Student("张一","115班",22,90);
        Student students2 = new Student("张二","115班",17,70);
        Student students3 = new Student("张三","115班",19,96);
        Student students4 = new Student("张四","115班",20,60);

        Student[] students = {students1, students2, students3, students4};
        for(Student s : students) {
            System.out.println(s.toString());
        }

        System.out.println("=============");

        Arrays.sort(students);
        for(Student s : students) {
            System.out.println(s.toString());
        }


    }

}
